package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 个人优惠券对象 jiajia_user_coupon
 * 
 * @author knd
 * @date 2021-10-13
 */
public class JiajiaUserCoupon extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 用户关联id */
    @Excel(name = "用户关联id")
    private Long uid;

    /** 优惠券id */
    @Excel(name = "优惠券id")
    private Long cid;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addtime;

    /** 失效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "失效时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date sxTime;

    /** 优惠券状态，0未使用，1已使用 */
    @Excel(name = "优惠券状态，0未使用，1已使用")
    private Integer status;

    /**使用时间*/
    private Date syTime;

    /**优惠券使用条件*/
    private Integer tiaoJian;

    /**优惠券名字*/
    private String cName;

    /**价格*/
    private Integer price;

    public Date getSyTime() {
        return syTime;
    }

    public void setSyTime(Date syTime) {
        this.syTime = syTime;
    }

    public Integer getTiaoJian() {
        return tiaoJian;
    }

    public void setTiaoJian(Integer tiaoJian) {
        this.tiaoJian = tiaoJian;
    }

    public String getcName() {
        return cName;
    }

    public void setcName(String cName) {
        this.cName = cName;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setCid(Long cid) 
    {
        this.cid = cid;
    }

    public Long getCid() 
    {
        return cid;
    }
    public void setAddtime(Date addtime) 
    {
        this.addtime = addtime;
    }

    public Date getAddtime() 
    {
        return addtime;
    }
    public void setSxTime(Date sxTime) 
    {
        this.sxTime = sxTime;
    }

    public Date getSxTime() 
    {
        return sxTime;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("uid", getUid())
            .append("cid", getCid())
            .append("addtime", getAddtime())
            .append("sxTime", getSxTime())
            .append("status", getStatus())
            .toString();
    }
}
